{literal}
    <script>
        $(function(){
            // Datepicker
            $('#dateDepot').datepicker({
                dateFormat: 'dd/mm/yy'
            });
            $('#dateReprise').datepicker({
                dateFormat: 'dd/mm/yy'
            });
        });
    </script>
{/literal}
{* /////  UNE FOIS QUE LE FORMULAIRE A ETE POSTE \\\\\\ *}  
{if ($smarty.get.action=="valider_vente" AND ($erreurs!="" OR $smarty.get.valid==""))}
    <center><h1>Veuillez saisir les informations concernant la vente: </h1></center>
    <p>
        <form action="index.php5">
        <input type="hidden" name="page" value="florient">
        <input type="hidden" name="action" value="valider_vente">
        <input type="hidden" name="valid" value=true>
        <input type="hidden" name="type_client" value="ecole">
        <input type="hidden" name="id" value="{$smarty.get.id}">
        <table align="center">
            <tr>
                <td class="titreForm">Semaine de la vente</td>
                <td>
                    <input type="text" name="semaine" value="{$vente->semaine_vente}">
                </td>
            </tr>
            <tr>
                <td class="titreForm">Date de d&eacute;p&ocirc;t</td>
                <td>
                    <input type="text" name="date_depot" id="dateDepot" value="{$vente->date_depot_vente|date_format:"%m/%d/%Y"}">
                </td>
            </tr>
            <tr>
                <td class="titreForm">Date de reprise</td>
                <td>
                    <input type="text" name="date_reprise" id="dateReprise" value="{$vente->date_reprise_vente|date_format:"%m/%d/%Y"}">
                </td>
            </tr>
            <tr>
                <td class="titreForm">Dotation vente </td>
                <td><input type="text" name="dotation" value="{$vente->dotation_vente}"></td>
            </tr>
            <tr>
                <td class="titreForm">Droit dotation </td>
                <td><input type="text" name="droit_dotation" value="{$vente->droit_dotation_vente}"></td>
            </tr>
            <tr>
                <td class="titreForm">Login</td>
                <td><input type="text" name="login" value="{$vente->login_vente}"></td>
            </tr>
            <tr>
                <td class="titreForm">Pass</td>
                <td><input type="text" name="pass" value="{$vente->pass_vente}"></td>
            </tr>           
        </table>
        <center><input type="submit" value="valider la vente"><br />
     </form>
        {if $smarty.get.valid==true}
            <div id="erreurs">
                {$erreurs}
            </div>
        {/if}
     <br />
    <center>
      <a href="index.php5?page=florient&action=gerer_ventes">Retour &agrave; la gestion des ventes</a><br />
      <a href="index.php5?page=florient">Retourner &agrave; l'espace d'administration</a> 
    </center>
{/if}